﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using FluentValidation;
using CashFlow.Web.Common;
using CashFlow.Web.Areas.ShopManage.Models.Fee;

namespace CashFlow.Web.Areas.ShopManage.Validator.Fee
{
    public class QueryFeeModelValidator
        : AbstractValidator<QueryFeeModel>
    {
        public QueryFeeModelValidator()
        {
            CascadeMode = CascadeMode.Stop;
            RuleFor(x => x.Date).Must(x => RegExpTool.IsDate(x))
                .WithMessage("非法Date");
        }
    }
}